

public class PracticsJieGou {
    public static void main(String[] args) {
       int sum= sum();
       System.out.println(sum);
    }

    /**
     * 1到100求和
     */
    public static int sum(){
        int sum=0;
        for(int i=1;i<=100;i++){
            sum=sum+i;
        }
        return sum;
    }


}
